home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
imagelib.000
/
dll22lin.int
< prev
next >
Wrap
Text File
|
1996-04-08
|
11KB
|
295 lines
{$X+}
Unit DLL22LIN;
{Copyright Jan Dekkers / Kevin Adams}
interface
uses
WinProcs, WinTypes, Graphics, SYSUtils, Dialogs,
Classes, Controls, StdCtrls, ExtCtrls;
type
TCallBackFunction = function (I : Integer) : Integer;
{Scrolling Message call}
Function ReadMessageFromFile(fn : TFilename;
Var Font : Tfont;
Var speed : integer;
Var BColor : Tcolor;
Var Msg : String) : Boolean;
{Scrolling Message call}
procedure WriteMessageToFile(fn : Tfilename;
Font : Tfont;
speed : integer;
BColor : Tcolor;
Msg : String);
{Scrolling Message call}
Function ReadMessageFromStream(TSM : TStream;
Var Font : Tfont;
Var speed : integer;
Var BColor : Tcolor;
Var Msg : String) : Boolean;
{Scrolling Message call}
Function WriteMessageToStream(Font : Tfont;
speed : integer;
BColor : Tcolor;
Msg : String;
Po : PChar) : Integer;
{Pascal type string to pchar}
Function PasStr( PStr : String) : PChar;
{interface call}
Function jpgfile(filename : String;
resolution : integer;
option : integer;
var Bitmap : TBitmap;
CallBackFunction : TCallBackFunction) : Boolean;
{interface call}
Function putjpgfile(filename : String;
quality : integer;
smooth : integer;
Bitmap : TBitmap;
CallBackFunction : TCallBackFunction) : Boolean;
{interface call}
Function putbmpfile(filename : String;
Bitmap : TBitmap;
CallBackFunction : TCallBackFunction) : Boolean;
{interface call}
Function giffile(filename : string;
var Bitmap : TBitmap;
CallBackFunction : TCallBackFunction) : Boolean;
{interface call}
Function bmpfile(filename : string;
var Bitmap : TBitmap;
CallBackFunction : TCallBackFunction) : Boolean;
{interface call}
Function pcxfile(filename : string;
var Bitmap : TBitmap;
CallBackFunction : TCallBackFunction) : Boolean;
{interface call}
Function jpgblob(filePoint : Pointer;
Size : LongInt;
resolution : integer;
option : integer;
var Bitmap : TBitmap;
CallBackFunction : TCallBackFunction): Boolean;
{interface call}
Function gifblob(filePoint : Pointer;
Size : LongInt;
var Bitmap : TBitmap;
CallBackFunction : TCallBackFunction): Boolean;
{interface call}
Function pcxblob(filePoint : Pointer;
Size : LongInt;
var Bitmap : TBitmap;
CallBackFunction : TCallBackFunction): Boolean;
{interface call}
Function bmpblob(filePoint : Pointer;
Size : LongInt;
var Bitmap : TBitmap;
CallBackFunction : TCallBackFunction): Boolean;
{interface call}
Function putjpgblob(filePoint : Pointer;
var Size : LongInt;
quality : integer;
smooth : integer;
Bitmap : TBitmap;
CallBackFunction : TCallBackFunction) : Boolean;
{interface call}
Function putbmpblob(filePoint : Pointer;
var Size : LongInt;
Bitmap : TBitmap;
CallBackFunction : TCallBackFunction) : Boolean;
{interface call}
Function GetBlobInfo(filePoint : Pointer;
Size : LongInt;
var FileType : String;
var Fwidth : Integer;
var FHeight : Integer;
var Fbitspixel : Integer;
var Fplanes : Integer;
var Fnumcolors : Integer;
var Fcompression : String) : Boolean;
{interface call}
Function GetFileInfo(fileName : String;
var FileType : String;
var Fwidth : Integer;
var FHeight : Integer;
var Fbitspixel : Integer;
var Fplanes : Integer;
var Fnumcolors : Integer;
var Fcompression : String) : Boolean;
{DLL call}
Function readjpgstream(filePoint : Pointer;
Size : LongInt;
resolution : integer;
scale : integer;
option : integer;
password : integer;
var hBmp : HBitmap;
var hPal : HPalette;
CallBackFunction: TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function readjpgfile(filename : pchar;
resolution : integer;
scale : integer;
option : integer;
password : integer;
var hBmp : HBitmap;
var hPal : HPalette;
CallBackFunction : TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function writejpgfile(filename : pchar;
quality : integer;
smooth : integer;
password : integer;
hBmp : HBitmap;
hPal : HPalette;
CallBackFunction : TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function writebmpfile(filename : pchar;
password : integer;
hBmp : HBitmap;
hPal : HPalette;
CallBackFunction : TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function readgiffile(filename : pchar;
password : integer;
var hBmp : HBitmap;
var hPal : HPalette;
CallBackFunction : TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function readbmpfile(filename : pchar;
password : integer;
var hBmp : HBitmap;
var hPal : HPalette;
CallBackFunction : TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function readpcxfile(filename : pchar;
password : integer;
var hBmp : HBitmap;
var hPal : HPalette;
CallBackFunction : TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function readpcxstream(filePoint : Pointer;
Size : LongInt;
password : integer;
var hBmp : HBitmap;
var hPal : HPalette;
CallBackFunction: TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function readbmpstream(filePoint : Pointer;
Size : LongInt;
password : integer;
var hBmp : HBitmap;
var hPal : HPalette;
CallBackFunction: TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function readgifstream(filePoint : Pointer;
Size : LongInt;
password : integer;
var hBmp : HBitmap;
var hPal : HPalette;
CallBackFunction: TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function streaminfo(filePoint : Pointer;
Size : LongInt;
FileType : PChar;
var Fwidth : Integer;
var FHeight : Integer;
var Fbitspixel : Integer;
var Fplanes : Integer;
var Fnumcolors : Integer;
Fcompression : PChar;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function fileinfo(filename : PChar;
FileType : PChar;
var Fwidth : Integer;
var FHeight : Integer;
var Fbitspixel : Integer;
var Fplanes : Integer;
var Fnumcolors : Integer;
Fcompression : PChar;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function writejpegstream(filePoint : Pointer;
var Size : LongInt;
quality : integer;
smooth : integer;
password : integer;
hBmp : HBitmap;
hPal : HPalette;
CallBackFunction : TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
{DLL call}
Function writebmpstream(filePoint : Pointer;
var Size : LongInt;
password : integer;
hBmp : HBitmap;
hPal : HPalette;
CallBackFunction : TCallBackFunction;
ShowDllErrorMsg : integer) : LongInt; Far;
function ValidMultiMedia(Name : PChar) : boolean;
implementation